<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShowsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shows', function (Blueprint $table){
            $table->increments('id');
            $table->timestamps();
            $table->string('name_en')->unique();
            $table->string('name_zh');
            $table->longText('detail');
            $table->date('air_date');
            $table->text('url_eztv');
            $table->text('url_ttmj');
            $table->boolean('is_off');
            $table->text('key_word');
            $table->text('description');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('shows');
    }
}
